import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import request from "./utils/request"
import websocket from "@/utils/websocket"

//全局注册request，其他文件可通过request使用分装好的axios实例
Vue.prototype.request = request

//全局注册websocket
Vue.prototype.websocket = websocket

Vue.config.productionTip = false

Vue.use(ElementUI)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
